Data Reference Atoms
Figure 4-21 also shows the data reference atom, which encompasses the data references.You define a data reference atom by specifying these elements:
- Size. A long integer that specifies the number of bytes in this data reference container atom.
- Type. A long integer that specifies the type of the data in the data reference atom (defined by the
'dref'
data type).- Version. A 1-byte specification of the version of this data reference atom.
Flags. Three bytes that contain space for future flags.
- Number of entries. A count of entries in the data references field.
- Data references. Data references are formatted like atoms, as follows:
- Size. A long integer that specifies the number of bytes in these data references.
- Type. A long integer that specifies the type of the data (currently defined by the
'alis'
data type on the Macintosh computer) in the data references.Version. A 1-byte specification of the version of these data references.
Flags. Three bytes that contain the attributes of the data in these data references. One enumerated constant is available. The dataRefSelfReference attribute denotes that the data comes from the same location as the movie resource. If the movie resource came from a resource fork, the movie data is in the data fork of the same file. In the case of a single-fork file, the movie data is also in the data fork of the file.
Data references. The data reference information. (For the current data handlers, this is an alias).